package ie.dcu.spca.model.bean;

import ie.dcu.spca.model.Bean;

import java.util.Date;

public class User extends Bean {
    private String name;

    public User(int id, String name, Date creat_at, Date update_at,
            Date delete_at) {
        super();
        this.id = id;
        this.name = name;
        this.create_at = creat_at;
        this.update_at = update_at;
        this.delete_at = delete_at;
    }

    public User(int id, String name, long creat_at, long update_at,
            long delete_at) {
        super();
        this.id = id;
        this.name = name;
        this.create_at = new Date(creat_at);
        this.update_at = new Date(update_at);
        this.delete_at = new Date(delete_at);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreate_at() {
        return create_at;
    }

    public void setCreate_at(Date creat_at) {
        this.create_at = creat_at;
    }

    public Date getUpdate_at() {
        return update_at;
    }

    public void setUpdate_at(Date update_at) {
        this.update_at = update_at;
    }

    public Date getDelete_at() {
        return delete_at;
    }

    public void setDelete_at(Date delete_at) {
        this.delete_at = delete_at;
    }

}
